using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Mgh.Data.Sql;
using Jewelry.BussinessLayer;
using Jewelry.Entities;
using Mgh.UI.Sql;

public partial class Pages_AViewCart : PageBase
{
    #region properties

    CartBLL bn;

    private string CartID
    {
        get { return Request.QueryString["cid"] == null ? string.Empty : Request.QueryString["cid"]; }
    }

    #endregion

    #region events

    override protected void Page_Load(object sender, EventArgs e)
    {
        base.Page_Load(sender, e);
        if (!IsPostBack)
        {
        }
    }

    #endregion

    #region functions

    #endregion
    protected void odsCreating(object sender, ObjectDataSourceEventArgs e)
    {
        bn = new CartBLL(getCurrentConnect());
        e.ObjectInstance = bn;
    }
    protected void odsSelected(object sender, ObjectDataSourceStatusEventArgs e)
    {
        if (e.ReturnValue == null)
        {
            CustomValidator1.IsValid = false;
            CustomValidator1.Text = bn.getMessage();
        }
    }
}
